<template>
  <div>
    <div class="footer_wrap">
      <!-- <a href="#/find">发现音乐</a>
      <a href="#/my">我的音乐</a>
      <a href="#/friend">朋友</a> -->
      <RouterLink to="/find">发现音乐</RouterLink>
      <RouterLink to="/my">我的音乐</RouterLink>
      <RouterLink to="/friend">朋友</RouterLink>
    </div>
    <div class="top">
      <RouterView />
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
};
</script>

<style lang="less">
body {
  margin: 0;
  padding: 0;
}
.footer_wrap {
  position: relative;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #ccc;

  .router-link-active {
    background-color: hotpink;
  }
}
.footer_wrap a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid black;
}
.footer_wrap a:hover {
  background-color: #555;
}
</style>